<?php
/**
 * Author: Administrator
 * Date: 2022/8/4 0:40
 */

namespace DesignPatterns\Behavioral\Visitor;


class Friend extends AbstractEntity
{
    protected $name;
    protected $heal;

    public function __construct($name, $heal)
    {
        $this->name = $name;
        $this->heal = $heal;
    }

    protected function EntityType()
    {
        return 'Friend';
    }

    public function getHeal()
    {
        return $this->heal;
    }

    public function getName()
    {
        return $this->name;
    }
}